<?php if (!defined('THINK_PATH')) exit();?><!-- 引入头部 -->
<!DOCTYPE html>
<html lang="zh-CN" xmlns:wb="http://open.weibo.com/wb">

<head>
<meta charset="utf-8">
<title><?php echo ($pageTitle); ?>-<?php echo C('WEB_SITE_NAME');?>，码出属于自己的天空</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<meta property="qc:admins" content="11670231027166526316110063757" />
    
<meta name="keywords" content="<?php echo C('WEB_SITE_NAME');?>,java,javascript,算法,程序员,程序开发,博客,Linux,前端开发,MacBook,苹果电脑">
<meta name="description" content="事无巨细，集腋成裘！每个程序员都应该有属于自己的一变天地。。">
<meta name="author" content="ubuntuvim,1527254027@qq.com">
<meta name="robots" content="index,follow">
<meta name="baidu-site-verification" content="bGNKDw4egt" />


<!-- 新 Bootstrap 核心 CSS 文件 -->
<!--<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">-->
 <!-- Loading Bootstrap -->
<link href="/Public/FlatUI/css/vendor/bootstrap.min.css" rel="stylesheet">

<!-- Loading Flat UI -->
<link href="/Public/FlatUI/css/flat-ui.css" rel="stylesheet">


<link rel="shortcut icon" href="/Public/images/logo/1155606.png">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/Public/FlatUI/js/vendor/html5shiv.js"></script>
  <script src="/Public/FlatUI/js/vendor/respond.min.js"></script>
<![endif]-->

  <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="/Public/FlatUI/js/vendor/jquery.min.js"></script>
<!--<script src="/Public/js/common/jquery.color.js"></script>-->

<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="/Public/FlatUI/js/flat-ui.min.js"></script>

<script src="/Public/js/home/login_register.js"></script>
<!--  新浪微博第三方登录插件  -->
<!--<script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js?appkey=670979742" type="text/javascript" charset="utf-8"></script>-->
<!--<script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js" type="text/javascript" charset="utf-8"></script>-->
<script src="/Public/js/oauth2/wb.js?appkey=670979742&debug=true" type="text/javascript" charset="utf-8"></script>
<!-- 腾讯qq第三方登录插件 -->
<script type="text/javascript" src="/Public/js/oauth2/qq-oauth2.js"></script>

<!-- 引入打开页面显示圈圈的效果js -->
<!--
<script src="/Public/js/page-effect/classie.js"></script>
<script src="/Public/js/page-effect/snap.svg-min.js"></script>
<script src="/Public/js/page-effect/svgLoader.js"></script>
<script src="/Public/js/page-effect/my-defined-effect.js"></script>
-->
<!-- 引入多说评论插件 -->
<input type="hidden" name="WEB_SITE_HOST_NAME" id="WEB_SITE_HOST_NAME_ID" value="<?php echo C('WEB_SITE_HOST_NAME');?>" />
<script src="/Public/js/duoshuo/duoshuoplagin.js"></script>
<!--  引入jQuery动画插件  -->
<script src="http://cdn.bootcss.com/jquery-easing/1.3/jquery.easing.min.js"></script>
    
<!--  自定义css  -->
<link rel="stylesheet" href="/Public/css/index.css">
<link rel="stylesheet" href="/Public/css/right-meun.css">
<!-- 自定义的响应式样式必须要放在index，否则不能覆盖原有的样式 -->    
<link rel="stylesheet" href="/Public/css/home-responsive.css"> <!-- 自定义的响应式样式 -->
    
<!-- 引入打开页面显示圈圈的效果css -->
<!--<link rel="stylesheet" href="/Public/css/page-effect/my-effect-style.css">-->

<!-- 引入右侧的工具栏样式 -->    
<script type="application/javascript" src="/Public/js/right-tools/popwin.js"></script>
<link rel="stylesheet" href="/Public/css/right-tools/zzsc.css">

<!-- 
引入代码显示插件（在博客页面显示有行数的代码片段）
参考：http://alexgorbatchev.com/SyntaxHighlighter/manual/installation.html
 -->
<!-- <script type="text/javascript" src="/Public/SyntaxHighlighter/brush.js"></script>
<link type="text/css" rel="stylesheet" href="/Public/SyntaxHighlighter/shCore.css"/>
<link type="text/css" rel="stylesheet" href="/Public/SyntaxHighlighter/shThemeDefault.css"/>
  -->
<!-- 
<style type="text/css">
.img-max{width:100%;height:auto;}
.img-min{width:auto;height:auto;}
</style> 
-->
</head>
<?php
 $currentURLduoshuo = 'http'; if ($_SERVER["HTTPS"] == "on") { $currentURLduoshuo .= "s"; } $currentURLduoshuo .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $currentURLduoshuo .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"]; } else { $currentURLduoshuo .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; } ?>
<input type="hidden" value="<?php echo ($currentURLduoshuo); ?>" name="CURRENT_URL" id="CURRENT_URL_ID">

<!-- Static navbar -->
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
        <span class="sr-only">Toggle navigation</span>
      </button>
      <a class="navbar-brand" href="<?php echo C('WEB_SITE_HOST_NAME');?>">
          <img src="/Public/images/logo/1155606.png" style="margin:0; padding:0;margin-top:-5px;" height="32px" width="32px">
          <font style="font-weight: bold; font-family: monospace;" class="logotext320noshow and1000-768noshow"><?php echo C('WEB_SITE_NAME');?></font>
        </a>
    </div>
    <div class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
          <li class=""><a href="<?php echo U('Home/Index/index');?>"><span class="glyphicon glyphicon-home"></span> 主页</a></li>
          
          <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-pencil"></span> 笔记 <b class="caret"></b></a>
              <ul class="dropdown-menu">
                  <?php if(is_array($typeList)): $i = 0; $__LIST__ = $typeList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li>
                          <a href="<?php echo U('Home/Index/index', array('cont_type' => $vo['type_no']));?>" class=""><?php echo ($vo["type_name"]); ?></a>
                      </li><?php endforeach; endif; else: echo "" ;endif; ?>
              </ul>
          </li>

        	<!-- 2015-08-22 去掉这个模块，没什么卵用！！
         <li>
          <a href="<?php echo U('Home/Discussion/index');?>">
          <span class="glyphicon glyphicon-comment"></span> 讨论</a>
        </li>
		-->

        <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                <span class="glyphicon glyphicon-tasks"></span> Todos <b class="caret"></b></a>
            <ul class="dropdown-menu">
              <li>
                <!-- 
					对于还没使用第三方登录的用户提示登录<?php echo U('Home/Discussion/commonFormNoLogin');?> 
					empty() 若变量已存在、非空字符串或者非零，则返回 false 值；反之返回 true。
				-->
                <?php if(empty($_SESSION['LOGINUSERINFO']) && empty($_COOKIE['my_cookie_key'])): ?><!-- 从 Public/js/index.js 引入 -->
                  <a href='#' onclick="showTaskListLoginPage()">
                      ibeginner Todos
                  </a>
                <?php else: ?>
                    <a href="<?php echo U('Home/TaskList/index');?>">
                      ibeginner Todos
                    </a><?php endif; ?>
              </li>
              <li>
                  <a href="<?php echo U('Home/TaskList/emberjsTodos');?>" target="_blank">Emberjs Todos</a>
                </li>
            </ul>
        </li>

       
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-user"></span> About Us <b class="caret"></b></a>
          <ul class="dropdown-menu">
              <li>
                  <a href="<?php echo U('Home/About/history');?>" class="" target="_blank">建站纪实</a>
              </li>
              <!--
              <li>
                  <a href="#" class="">联系我们</a>
              </li>
				-->
              <li>
                  <a href="<?php echo C('GITHUB');?>" target="_blank">github</a>
              </li>
              <li>
                  <a href="<?php echo ('GITOSCHINA');?>" target="_blank">oschina git</a>
              </li>
              <li>
                  <a href="<?php echo ('MY_WEIBO');?>" target="_blank">作者微博</a>
              </li>
              
              <li>
                  <a href="javascript: alert('请联系QQ：1527254027');" class="">广告联系</a>
              </li>
          </ul>
        </li>
      </ul>
    
    </div><!--/.nav-collapse -->
  </div>

</div>


</html>
<script type="text/javascript" src="/Public/js/home/index.js"></script>
<script type="text/javascript" src="/Public/js/home/sharewx_v1.0.0.js"></script>
<script type="text/javascript" src="/Public/js/home/share2otherwebsite.js"></script>
<!-- 注意引入的次序，endlesspase 需要share2otherwebsite里的方法 -->
<script type="text/javascript" src="/Public/js/home/endlesspage.js"></script>
<!-- 引入点赞、差评效果设置js -->
<script type="text/javascript" src="/Public/js/home/praise_bad.js"></script>

<link rel="stylesheet" href="/Public/css/index-share-style.css">
<!--<script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js?appkey=670979742" 
	type="text/javascript" charset="utf-8"></script>-->
    

<style type="text/css">
.my-panel-footer-style {
    font-size: 11px;
}

.my-a-style {
/*    color: #16a085;*/
    text-decoration: none;
    -webkit-transition: .25s;
    transition: .25s;
}
.right-panel-style {
    font-size: 14px; margin-right: -10px; box-shadow: 1px 2px 3px #ccc;-webkit-box-shadow: 1px 2px 3px #ccc;
}
    
.my-panel-body {
    padding: 5px;
} 

</style>
<body>
<!-- 引入第三方登录页面 -->

<div class="modal fade" id="showTaskListLoginPage_id" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
   <div class="modal-dialog">
	  <div class="modal-content">
	    <div class="modal-header">
	      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
	      <h6 class="modal-title" id="gridSystemModalLabel">您还未登录，请使用如下的账号登录~~~</h6>
	    </div>
	    <div class="modal-body">
	      <div class="container-fluid">
	        <div class="row">
	          <div class="col-md-12">
	              <div class="ds-login"></div>  
	          </div>
	        </div>
	      
	      </div>
	    </div>
	<!--
	    <div class="modal-footer">
	      <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
	      <button type="button" class="btn btn-primary">Save changes</button>
	    </div>
	-->
	  </div><!-- /.modal-content -->
	</div><!-- /.modal-dialog -->
</div>

<!-- 设置session的值到hidden里，在滚动下一页中需要用到，评论时候也用到-->
<!--    登录用户的信息 用户名  用户头像  用户的主页 -->
<input type="hidden" value="<?php echo ($_SESSION['WEIBOUSERINFO']['wbusername']); ?>" name="wbusername" id="wbusername_id">
<input type="hidden" value="<?php echo ($_SESSION['WEIBOUSERINFO']['wbuserheadpic']); ?>" name="wbuserheadpic" id="wbuserheadpic_id">
<input type="hidden" value="<?php echo ($_SESSION['WEIBOUSERINFO']['wbuserwebsite']); ?>" name="wbuserwebsite" id="wbuserwebsite_id">
    
<!-- 文章类型 -->
<input type="hidden" value="<?=$_GET['cont_type']?>" name="cont_type" id="cont_type_id">
    
 <!-- 网站简介 -->
<div class="jumbotron" style="background: #f0efef;">
    <center>
    <!-- <h2 style="display: inline;">ibeginner</h2> -->
    <small style="color: #3c5269; font-size: 25px;"><span class="glyphicon glyphicon-option-horizontal">&nbsp;事无巨细，集腋成裘！</span></small>
    </center>
</div>
    
<div class="container">
    
    <?php if(is_array($centList)): $i = 0; $__LIST__ = $centList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="row">
            <div class="col-md-12 col-sm-12">
                    <h5 style="color: #3c5269;">
                        <a href="<?php echo U('Home/Index/detail', array('id' => $vo['id']));?>" 
                            style="color: #3c5269;" target="_blank"><?php echo ($vo["title"]); ?></a>
                    </h5>
                   <p><?php echo ($vo["ctt_summary"]); ?></p>
                <!-- 标签tag区 -->
<!--
                <span class="tag-tools" style="">
                    <span class="smaller400noshow">
                        <a href="http://www.weibo.com/ubuntuvim" target="_blank">tag1</a>&nbsp;
                        <a href="http://www.weibo.com/ubuntuvim" target="_blank">tag2</a>&nbsp;
                        <a href="http://www.weibo.com/ubuntuvim" target="_blank">tag3</a>
                    </span>
                </span>
-->
                
                <span class="u-commt-share-tools shareTo" style="">
                    <span class="smaller400noshow">
                        <a href="<?php echo ('MY_WEIBO');?>" target="_blank">ubuntuvim</a>
                        &nbsp;&nbsp;<font style="color: #000;"><?php echo (substr($vo["public_time"],0,16)); ?></font>&nbsp;&nbsp;
                    </span>
                    
                    <span class="glyphicon glyphicon-arrow-up" style="cursor: pointer;" onclick="praise(this, '<?php echo ($vo["id"]); ?>');">顶</span>(<font id="praise_count_id_<?php echo ($vo["id"]); ?>"><?php echo ($vo["praise_count"]); ?></font>)&nbsp;&nbsp;&nbsp;
                    <span class="glyphicon glyphicon-arrow-down" style="cursor: pointer;" onclick="bad(this, '<?php echo ($vo["id"]); ?>');">踩</span>(<font id="bad_count_id_<?php echo ($vo["id"]); ?>"><?php echo ($vo["bad_count"]); ?></font>)&nbsp;&nbsp;
                    <span class="share-box js-list-share-btn shareshowbtn" aid="114718" title="分享" onmouseover="shareshow('showShareTools_<?php echo ($vo["id"]); ?>')" onmouseout="sharehide('showShareTools_<?php echo ($vo["id"]); ?>')" style="cursor: pointer;">
                        <span class="glyphicon glyphicon-share-alt">分享</span>
                        
                        <div class="share" style="display: none;" bosszone="kjsy_share" id="showShareTools_<?php echo ($vo["id"]); ?>">
                            <a onclick="postToWb(this.name,this.href,this.id); return false;" title="分享到微博" class="sharewb" name="<?php echo ($vo["title"]); ?>" href="<?php echo ($vo["ctt_img_url"]); ?>" id="<?php echo U('Home/Index/detail', array('id' => $vo['id']));?>">分享到微薄</a>

                            <a onclick="postToQzone(this.name,'<?php echo ($vo["ctt_summary"]); ?>',this.href,this.id); return false;" title="分享到QQ空间" class="shareqzone" name="<?php echo ($vo["title"]); ?>" href="<?php echo ($vo["ctt_img_url"]); ?>" id="<?php echo U('Home/Index/detail', array('id' => $vo['id']));?>">分享到空间</a>

                            <a href="javascript:void(0)" onclick="shareToSina(this.name,this.id); return false;" title="分享到新浪微博" class="sharesina" name="<?php echo ($vo["title"]); ?>" id="<?php echo U('Home/Index/detail', array('id' => $vo['id']));?>">分享到新浪微博</a>

                            <a onclick="postToQQEmail(this.name,'<?php echo ($vo["ctt_summary"]); ?>',this.id,this.href); return false;" title="分享到QQ邮箱" class="shareqqemail" name="<?php echo ($vo["title"]); ?>" id="<?php echo ($vo["ctt_img_url"]); ?>" href="<?php echo U('Home/Index/detail', array('id' => $vo['id']));?>">分享到QQ邮箱</a>

                            <a onclick="shareToQQ(this.name,this.href,this.id); return false;" title="分享到QQ好友" class="sharepengyou" name="<?php echo ($vo["title"]); ?>" furl="<?php echo ($vo["ctt_img_url"]); ?>" id="<?php echo U('Home/Index/detail', array('id' => $vo['id']));?>">分享到QQ好友</a>
                            
                            <a href="javascript:void(0)" onclick="shareToRenren(this.name,this.id); return false;" title="分享到人人" class="sharerenren" name="【<?php echo ($vo["title"]); ?>" id="<?php echo U('Home/Index/detail', array('id' => $vo['id']));?>">分享到人人</a>

                            <a href="javascript:void(0)" onclick="shareToKaixin(this.name,this.id); return false;" title="分享到开心" class="sharekaixin" name="<?php echo ($vo["title"]); ?>" id="<?php echo U('Home/Index/detail', array('id' => $vo['id']));?>">分享到开心</a>
                        </div>
                    </span>
                    
                    &nbsp;&nbsp;
                    <span class="glyphicon glyphicon-comment" style="cursor: pointer;" onclick="toDetailPage('<?php echo U('Home/Index/detail', array('id' => $vo['id']));?>');">评论(<?php echo ($vo["comment_count"]); ?>)</span>
                    <!-- 首页不再防止评论框，点击评论转到详细页面的评论区
                    -->
                    
                    &nbsp;&nbsp;
                    <?php if(is_array($typeList)): $i = 0; $__LIST__ = $typeList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo2): $mod = ($i % 2 );++$i; if($vo2['type_no'] == $vo['cont_type']): ?><a href="<?php echo U('Home/Index/index', array('cont_type' => $vo['cont_type']));?>" class=""><?php echo ($vo2["type_name"]); ?></a><?php endif; endforeach; endif; else: echo "" ;endif; ?>
                </span>
            </div>
        </div> <!-- //row -->
        <hr style="height:1px;border:none;border-top:1px dashed #cacaca;margin: 10px 0 10px 0;" /><?php endforeach; endif; else: echo "" ;endif; ?>
    
    <?php
 include_once('oauth2/sina/saeOauth2Util.php'); ?>
    <input type="hidden" value="<?php echo ($currentURL); ?>" name="currentUrl" id="currentUrl">
    <input type="hidden" value="<?php echo ($code_url); ?>" name="code_url" id="code_url">
    <div class="showNewCmInfoBody" style="display: none;" id="showNewCmInfoBodyId">
        <!-- 动态加载的数据显示在本标签的后面 -->
    </div>
<!-- 
    <div class="alert alert-warning" id="tipLastPageInfo">
      已经是最后一页了
    </div>
 -->
    <div class="loaddiv">
        <img src="/Public/images/loading/5-121204193955-51.gif" />
    </div>
    
</div> <!-- /container -->

<!-- 右侧的工具栏 -->    
<div id="moquu_wxin" class="moquu_wxin"><a href="javascript:void(0)"><div class="moquu_wxinh"></div></a></div>
<div id="moquu_wshare" class="moquu_wshare"><a href="javascript:void(0)"><div class="moquu_wshareh"></div></a></div>  

<a id="moquu_top" href="javascript:void(0)"></a>

</body>

<!-- 引入尾部 -->

<center>
<div class="container-fluid" style="padding:0;">
    <footer class="footer" style="color:#3c5269; padding: 10px 0 1px 0;">
        <p style="text-center">
            CopyRight ©201409,Site Build By Ubuntuvim.
            <font class="logotext320noshow">广西梧州富民三路82号</font>
        </p>
    </footer>
</div>
</center>